package de.fhtrier.gdw2.ships.game.modules;

import java.util.ArrayList;

import org.newdawn.slick.GameContainer;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.state.StateBasedGame;

import de.fhtrier.gdw2.ships.game.World;
import de.fhtrier.gdw2.ships.game.entities.Entity;
import de.fhtrier.gdw2.ships.states.GameplayState;

import org.newdawn.slick.GameContainer;
import org.newdawn.slick.state.StateBasedGame;

import de.fhtrier.gdw2.ships.game.World;
import de.fhtrier.gdw2.ships.game.entities.Entity;
import de.fhtrier.gdw2.ships.states.GameplayState;


public class Weapon extends Module {
	private int range;
	private int damage;
	
	
	public void update(GameContainer container, StateBasedGame game, int delta)
	{
		ArrayList<Entity> entitiesToTest;
		entitiesToTest = ((GameplayState) game.getCurrentState()).getGameWorld().getEntities();
		
		for(Entity e : entitiesToTest)
		{
			World.inRange(this, e, range);
		}
		
		
	}


	@Override
	public void update(World w, GameContainer container, int delta, Entity e)
		{
			// TODO Auto-generated method stub
			
		}


	@Override
	public void render(GameContainer container, StateBasedGame game, Graphics g)
		{
			// TODO Auto-generated method stub
			
		}


	@Override
	public Module duplicateModule()
		{
			// TODO Auto-generated method stub
			return null;
		}
	

	
	
	
}